package com.boang.time;

import java.time.Duration;
import java.time.LocalTime;

/*
    @author:sa
    @date:2024/11/22 11:31
*/
public class Test {
    public static void main(String[] args) {
        LocalTime end=LocalTime.of(12,00,00);
        LocalTime stant=LocalTime.of(12,00,00);
        Long second= Duration.between(stant,end).getSeconds();
        System.out.println(second);
        System.out.println(second/60);
    }
}